@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  background: #f8f7fe;
  font-size: 14px;
  color: #606266;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

/* 
 * 以下开始是一些全局设置，包含UI指定的修改规范
*/
.app-container {
  padding: 20px;
}

// 时间选择器
.yl-date-picker {
  width: 300px !important;
}

// 侧边栏logo容器 调节logo高度
.sidebar-logo-container {
  height: 64px;
}

// 侧边栏竖线
.sidebar-container {
  border-right: 0px solid #ecf0f6;
}

// 右侧主体区域背景色
.main-container {
  background-color: #f8f7fe;
}

// 用户名hover
.navbar .right-menu .right-menu-item.hover-effect {
  &:hover {
    background: none !important;
  }
}

// 标签页
.el-tabs__nav-wrap {
  line-height: 60px;
  height: 60px;
  font-size: 18px;
  padding: 0 20px;
}
.el-tabs__header {
  margin: 0 !important;
}
// 左侧主体区域

.fixed-header + .app-main {
  height: calc(100vh - 180px);
  width: calc(100vw - 260px);
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin: 160px 20px 20px;
  background: #fff;
}

// 分页
.page-pagination .el-pagination {
  width: calc(100vw - 280px);
  height: 97px;
  background: #ffffff;
  box-shadow: 0px -32px 46px 0px rgba(126, 126, 126, 0.09);
  position: absolute;
  bottom: 0px;
  text-align: right;
  padding: 35px 50px 0 0 !important;
  z-index: 9;
}

.top-tabs {
  position: absolute;
  top: 0px;
  width: 100%;
  background: #fff;
  height: 60px;
  left: 0px;
  z-index: 2;
}

// 搜索card
.search-card {
  margin-bottom: 17px;
  .fr {
    float: right;
  }
  .search-cards {
    background: #ffffff;
    border: 2px solid #eceff6;
    border-radius: 6px;
    padding: 20px 20px 0;
    margin-top: 20px;
  }
  // 文本框
  .el-form--inline .el-form-item {
    margin-right: 20px !important;
  }
  .el-input__inner {
    width: 174px !important;
    height: 42px !important;
    border: 1px solid #e6e6e6 !important;
    line-height: 42px !important;
    border-radius: 6px !important;
  }
  .big-input {
    .el-input__inner {
      width: 370px !important;
    }
  }
  .el-form-item__content {
    span {
      display: inline !important;
    }
  }

  .el-date-editor--daterange.el-input__inner {
    width: 272px !important;
    height: 42px !important;
    line-height: 42px !important;
  }

  .el-date-editor {
    .el-input__icon {
      width: 0px !important;
    }
    .el-range-input {
      width: 48% !important;
    }
  }
}

.search-button {
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline;
  background: url('../assets/search/search.png') no-repeat #304f9c center center !important;
  background-size: 13px !important;
}
.rengeSelect {
  display: inline;
  margin-right: 30px;
}
.moreBtn {
  margin-left: 30px;
}

// 表格样式
.el-table__header {
  overflow: hidden;
  background: #f7f9ff;
}
.el-table .el-table__header tr,
.el-table .el-table__header th {
  border-radius: 0;
  overflow: hidden;
  background: #f7f9ff;
}
.el-table .el-table__header th > .cell {
  white-space: pre-line !important;
}
.el-table th.is-leaf {
  border: 0px;
}

.el-table th > .cell {
  color: #333333;
  font-weight: 400;
}

.table-card {
  overflow: auto;
}

// 按钮
.el-button {
  border-radius: 6px;
}
.el-button--primary.is-plain {
  background: #ffffff !important;
}

.el-button--primary.is-plain:focus,
.el-button--primary.is-plain:hover {
  color: $activeBg !important;
}

//tab样式
.el-radio-button .el-radio-button__inner {
  position: relative;
  width: 110px;
  padding: 0;
  height: 36px;
  line-height: 36px;
  background: #ffffff !important;
  border: 0 !important;
  color: #606266;
  margin-right: 16px;
  font-size: 14px;
  box-shadow: 0px 3px 7px 0px rgba(153, 153, 153, 0.2);
  border-radius: 5px !important;
}
.el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background: #ffffff;
  color: #304f9c !important;
}

.el-radio-button__orig-radio:checked + .el-radio-button__inner:before {
  content: '';
  position: absolute;
  display: inline-block;
  left: 50%;
  margin-left: -12px;
  bottom: 0px;
  width: 24px;
  height: 2px;
  background: #304f9c;
}

// 滚动条样式
::-webkit-scrollbar-track {
  background-color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #eceff6;
  border-radius: 20px;
}

.menu-table {
  margin-top: 10px;
  height: calc(100vh - 265px);
  overflow: auto;
}

// 内边距20
.mainpd-20 {
  padding: 20px;
}

// 搜索隐藏项
.other-select {
  display: inline;
  margin-right: 30px;
}

// 按钮间距
.el-button + .el-button {
  margin-left: 30px !important;
}

.el-dropdown__caret-button.el-button {
  margin-left: 0px !important;
}

// 面包屑
.el-breadcrumb__inner a,
.el-breadcrumb__inner.is-link {
  font-weight: normal !important;
}

// 弹出居中
.el-dialog {
  margin: 0px !important;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.el-dialog__body {
  padding: 0 20px;
  max-height: calc(100vh - 200px);
  overflow: auto;
  .el-form--label-top .el-form-item__label {
    padding-bottom: 0px;
  }
}

.el-dialog__header {
  border-bottom: 1px solid #e6e6e6;
  height: 53px;
  line-height: 53px;
  padding: 0px !important;
  .el-dialog__title {
    height: 17px;
    font-size: 18px;
    font-family: Source Han Sans SC;
    font-weight: bold;
    color: #333333;
    height: 17px !important;
    line-height: 17px !important;
    margin-left: 20px;
    &::before {
      content: '';
      display: inline-block;
      vertical-align: middle;
      width: 4px;
      height: 17px;
      background: #304f9c;
      margin-right: 10px;
    }
  }
}

// dialog footer分割线
.el-dialog__footer {
  border-top: 1px solid #ecf0f6;
  padding-top: 13px;
}

// 抽屉
.el-drawer__header {
  border-bottom: 1px solid #e6e6e6;
  height: 70px;
  padding: 0 20px !important;
  font-size: 18px;
  font-family: Source Han Sans SC;
  font-weight: bold;
  color: #333333 !important;
  margin-bottom: 0px !important;
  &::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 4px;
    height: 17px;
    background: #304f9c;
    margin-right: 10px;
  }
}

.close-drawer {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  top: 50%;
  margin-top: -20px;
  left: -20px;
  background: #ffffff;
  box-shadow: 18px -1px 31px 7px rgba(84, 57, 200, 0.06);
  border-radius: 50%;
  position: absolute;
}
